<%-- 
    Document   : checkpass
    Created on : Dec 13, 2013, 11:37:01 PM
    Author     : Welcome
--%>

<%@page import="businesscard.DAO.UserDAO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    String q =request.getParameter("pass");
    UserDAO user = new UserDAO();
    String pass=user.md5(q);
    boolean rs=user.checkPass(pass);
    if(!rs)
    {
        out.print(" Mật khẩu sai!");
    }
    else{
        out.print("Mật khẩu hợp lệ!");
    }
    %>